package com.abevi.utils
{
	import flash.desktop.NativeApplication;
	import flash.events.TimerEvent;
	import flash.system.Capabilities;
	import flash.system.System;
	import flash.utils.Timer;
	
	public class DebuggingInfo
	{
		private var _timer : Timer;
		
		[Bindable]
		public var info : String = "";		
		
		public function DebuggingInfo()
		{
			_timer = new Timer( 1000 );
			_timer.addEventListener( TimerEvent.TIMER, onTimer );
			_timer.start();
		}
		
		private function onTimer( event:TimerEvent ) : void
		{
			info = "OS: "+ Capabilities.os + 
				" FlashVM: " + System.vmVersion + 
				" AIR: " + NativeApplication.nativeApplication.runtimeVersion +				 
				" mem: " + System.totalMemory / 1024 + "Kb";
		}

	}
}